This feature is supported only on FX series readers. The FX
Readers USB connection can be configured to be either
ActiveSync or Network. While in ActiveSync mode, the ActiveSync
application running on host gets connected as soon as the USB
cable connected to the Reader is plugged in to the host. While in
Network mode, the Reader and the host gets connected as a virtual
network, reader being 169.254.10.1. This acts as a fallback
mechanism to login to the Readers web console to know its
primary IP. The property USBOperationInfo can be used for getting
or setting this information.
try
{
// Get USB Mode
USBOperationInfo usbOpInfo = rm.USBOperationInfo;
Console.WriteLine("Current USB Operation Mode is
: " + usbOpInfo.Mode.ToString() +
"AllowLLRPConnectionOverride = " +
usbOpInfo.AllowLLRPConnectionOverride.ToString());
// Set USB Mode
USBOperationInfo newUSBOpInfo = new USBOperationInfo(USB_OPERATION_MODE.NETWORK,
true);
rm.USBOperationInfo = newUSBOpInfo;
}
catch (OperationFailureException exception)
{
Console.WriteLine("USB Operation Mode failed " +
exception.Message);
}